package model;

import java.io.Serializable;

public class LiveFeedInfo implements Serializable {
	private String userFullName;
	private String encryptedVote;

	public LiveFeedInfo() {
	}

	public void setUserFullName(String userFullName) {
		this.userFullName = userFullName;
	}

	public String getUserFullName() {
		return userFullName;
	}

	public void setEncryptedVote(String encryptedVote) {
		this.encryptedVote = encryptedVote;
	}

	public String getEncryptedVote() {
		return encryptedVote;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((userFullName == null) ? 0 : userFullName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof LiveFeedInfo))
			return false;
		LiveFeedInfo other = (LiveFeedInfo) obj;
		if (userFullName == null) {
			if (other.userFullName != null)
				return false;
		} else if (!userFullName.equals(other.userFullName))
			return false;
		return true;
	}

}